<?php

namespace app\admin\model\sum;

use think\Model;
use traits\model\SoftDelete;

class TeamOrderLog extends Model
{

    use SoftDelete;

    // 表名
    protected $name = 'sum_team_order_log';

    // 自动写入时间戳字段
    protected $autoWriteTimestamp = 'int';

    // 定义时间戳字段名
    protected $createTime = 'createtime';
    protected $updateTime = 'updatetime';
    protected $deleteTime = false;

    // 追加属性
    protected $append = [
    ];

    public function user()
    {
        return $this->belongsTo(\app\admin\model\User::class, 'user_id');
    }
    public function orderUser()
    {
        return $this->belongsTo(\app\admin\model\User::class, 'order_user_id');
    }
}
